package com.tourism.exception;

/**
 * @Description
 * @Author z
 * @Date 2021-04-03 23:32
 */
public enum ExceptionEnum {
    UserExist(1, "用户名已存在"),
    VerifyError(2, "验证码错误"),
    VerifyExpire(3, "验证码已经失效，请重新获取"),
    LineExist(3, "线路名已存在"),
    AreaExist(4, "区域名已存在"),
    NotOperate(5, "不是管理员，没有操作权限"),
    PasswordError(6, "原密码错误"),
    AttractionCollected(7, "景点已经被收藏过了"),
    RoomNumNotEnough(8, "房间数量不够了"),
    OrderAlreadyPay(9, "订单已经支付，无法取消"),
    ;
    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }


    ExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
